import requests, pprint

url = 'http://localhost/api/mgr/medicines'
body = {
    'action': 'add_medicine',
    'data': {
        "desc": "青霉素 国字号",
        "name": "青霉素",
        "sn": "099877883837"
    }
}
headers = {
    'Cookie': '__guid=96992031.1054226641019815200.1610883211798.1155; csrftoken=bhqMhToKnqaynYvTtfxJdSYahNLmB9tgezbeN7oMjko96rpr1lZ8UDY308oWl2Ba; sessionid=a09sorft5mo4o8l8al2ptansfdw6zlis; monitor_count=8'
}

res = requests.post(url, json=body, headers=headers)
pprint.pprint(res.json(), sort_dicts=0)